package com.woniuxy.caradmin.mapper;

import com.woniuxy.caradmin.entity.pojo.Troublerecord;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author womenzu
 * @since 2020-12-07
 */
@Repository
public interface TroublerecordMapper  {
//分页查询事故
public List<Troublerecord>     selectAllByPage(Troublerecord troublerecord);
//提交事故记录
    public int addTroublerecord (Troublerecord troublerecord);
    //更新事故记录
    public int updateTroublerecord(Troublerecord troublerecord);
    //删除事故记录
    public int removeT(@Param("id") Integer id);
    //id查询事故记录
    public Troublerecord selecTroubleById(@Param("id") Integer id);

}
